package com.cy.wangly.rest.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * @author lingyun.wang on @date 2022/2/24
 */
@RestController
@RequestMapping(value = "/log")
public class LogController {
    Logger logger = LoggerFactory.getLogger(LogController.class);
    @GetMapping(value = "/anyPrint")
    public String getRandomInt(String str) {
        for (int i = 0; i < 9999999; i++) {
            logger.debug("test1test2test3test4test5test6");
            logger.info("test1test2test3test4test5test6");
            logger.error("test1test2test3test4test5test6");
        }
        return str;
    }
}
